#ifndef __IMU901_H
#define __IMU901_H
#include <stdint.h>

extern uint8_t Rx_state;

extern uint8_t IMU_Agroy[6];
extern uint8_t IMU_Groy[6];
extern uint8_t IMU_Angle[6];
extern uint8_t Rx_num;

extern uint8_t IMU_integing_flag;

extern float Angle_Yaw;
extern float Angle_Roll;
extern float Angle_Pitch;
extern float Agroy_X;
extern float Agroy_Y;
extern float Agroy_Z;
extern float Groy_X;
extern float Groy_Y;
extern float Groy_Z;


void IMU_receiveData(uint8_t* rxdata,uint8_t* Angle_buf);
//void WT9011_get_Angle(uint8_t* rxdata,uint8_t* Angle_buf);
void WT9011_get_Angle(uint8_t* rxdata,uint8_t* IMU_Agroy,uint8_t* IMU_Groy,uint8_t* IMU_Angle);
void WT9011_get_Agroy(uint8_t* rxdata,uint8_t* Angle_buf);
void WT9011_get_Groy(uint8_t* rxdata,uint8_t* Angle_buf);

#endif



